Autogenerated HTML docs for v1.6.0.2-287-g3791f
diff --git a/technical/api-gitattributes.html b/technical/api-gitattributes.html index 23a1c43..1c75522 100644 --- a/technical/api-gitattributes.html +++ b/technical/api-gitattributes.html
@@ -3,7 +3,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<meta name="generator" content="AsciiDoc 7.0.2" /> +<meta name="generator" content="AsciiDoc 8.2.5" /> <style type="text/css"> /* Debug borders */ p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 { @@ -16,8 +16,13 @@ margin: 1em 5% 1em 5%; } -a { color: blue; } -a:visited { color: fuchsia; } +a { + color: blue; + text-decoration: underline; +} +a:visited { + color: fuchsia; +} em { font-style: italic; @@ -39,13 +44,18 @@ line-height: 1.3; } -h1 { +h1, h2, h3 { border-bottom: 2px solid silver; } h2 { - border-bottom: 2px solid silver; padding-top: 0.5em; } +h3 { + float: left; +} +h3 + * { + clear: left; +} div.sectionbody { font-family: serif; @@ -70,7 +80,7 @@ color: #527bbd; font-family: sans-serif; font-weight: bold; - font-size: 1.2em; + font-size: 1.1em; } span#email { } @@ -139,6 +149,9 @@ padding: 0.5em; } +div.listingblock { + margin-right: 0%; +} div.listingblock > div.content { border: 1px solid silver; background: #f4f4f4; @@ -148,9 +161,13 @@ div.quoteblock > div.content { padding-left: 2.0em; } -div.quoteblock .attribution { + +div.attribution { text-align: right; } +div.verseblock + div.attribution { + text-align: left; +} div.admonitionblock .icon { vertical-align: top; @@ -194,13 +211,12 @@ ul, ol { list-style-position: outside; } -ol.olist2 { +div.olist2 ol { list-style-type: lower-alpha; } div.tableblock > table { - border-color: #527bbd; - border-width: 3px; + border: 3px solid #527bbd; } thead { font-family: sans-serif; @@ -214,6 +230,9 @@ margin-top: 0.8em; margin-bottom: 0.8em; } +div.hlist td { + padding-bottom: 5px; +} td.hlist1 { vertical-align: top; font-style: italic; @@ -226,6 +245,32 @@ @media print { div#footer-badges { display: none; } } + +div#toctitle { + color: #527bbd; + font-family: sans-serif; + font-size: 1.1em; + font-weight: bold; + margin-top: 1.0em; + margin-bottom: 0.1em; +} + +div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 { + margin-top: 0; + margin-bottom: 0; +} +div.toclevel2 { + margin-left: 2em; + font-size: 0.9em; +} +div.toclevel3 { + margin-left: 4em; + font-size: 0.9em; +} +div.toclevel4 { + margin-left: 6em; + font-size: 0.9em; +} /* Workarounds for IE6's broken and incomplete CSS2. */ div.sidebar-content { @@ -254,6 +299,9 @@ border-left: 2px solid silver; padding-left: 0.5em; } + +/* IE6 sets dynamically generated links as visited. */ +div#toc a:visited { color: blue; } </style> <title>gitattributes API</title> </head> @@ -263,13 +311,13 @@ </div> <div id="preamble"> <div class="sectionbody"> -<p>gitattributes mechanism gives a uniform way to associate various -attributes to set of paths.</p> +<div class="para"><p>gitattributes mechanism gives a uniform way to associate various +attributes to set of paths.</p></div> </div> </div> -<h2>Data Structure</h2> +<h2 id="_data_structure">Data Structure</h2> <div class="sectionbody"> -<dl> +<div class="vlist"><dl> <dt> <tt>struct git_attr</tt> </dt> @@ -290,11 +338,11 @@ to <tt>git_checkattr()</tt> function, and receives the results. </p> </dd> -</dl> +</dl></div> </div> -<h2>Calling Sequence</h2> +<h2 id="_calling_sequence">Calling Sequence</h2> <div class="sectionbody"> -<ul> +<div class="ilist"><ul> <li> <p> Prepare an array of <tt>struct git_attr_check</tt> to define the list of @@ -313,14 +361,14 @@ the array is defined for the path. </p> </li> -</ul> +</ul></div> </div> -<h2>Attribute Values</h2> +<h2 id="_attribute_values">Attribute Values</h2> <div class="sectionbody"> -<p>An attribute for a path can be in one of four states: Set, Unset, +<div class="para"><p>An attribute for a path can be in one of four states: Set, Unset, Unspecified or set to a string, and <tt>.value</tt> member of <tt>struct -git_attr_check</tt> records it. There are three macros to check these:</p> -<dl> +git_attr_check</tt> records it. There are three macros to check these:</p></div> +<div class="vlist"><dl> <dt> <tt>ATTR_TRUE()</tt> </dt> @@ -345,14 +393,14 @@ Returns true if the attribute is Unspecified for the path. </p> </dd> -</dl> -<p>If none of the above returns true, <tt>.value</tt> member points at a string -value of the attribute for the path.</p> +</dl></div> +<div class="para"><p>If none of the above returns true, <tt>.value</tt> member points at a string +value of the attribute for the path.</p></div> </div> -<h2>Example</h2> +<h2 id="_example">Example</h2> <div class="sectionbody"> -<p>To see how attributes "crlf" and "indent" are set for different paths.</p> -<ol> +<div class="para"><p>To see how attributes "crlf" and "indent" are set for different paths.</p></div> +<div class="olist"><ol> <li> <p> Prepare an array of <tt>struct git_attr_check</tt> with two elements (because @@ -360,7 +408,7 @@ pointers to <tt>struct git_attr</tt> obtained by calling <tt>git_attr()</tt>: </p> </li> -</ol> +</ol></div> <div class="listingblock"> <div class="content"> <pre><tt>static struct git_attr_check check[2]; @@ -372,13 +420,13 @@ check[1].attr = git_attr("ident", 5); }</tt></pre> </div></div> -<ol> +<div class="olist"><ol> <li> <p> Call <tt>git_checkattr()</tt> with the prepared array of <tt>struct git_attr_check</tt>: </p> </li> -</ol> +</ol></div> <div class="listingblock"> <div class="content"> <pre><tt> const char *path; @@ -386,13 +434,13 @@ setup_check(); git_checkattr(path, ARRAY_SIZE(check), check);</tt></pre> </div></div> -<ol> +<div class="olist"><ol> <li> <p> Act on <tt>.value</tt> member of the result, left in <tt>check[]</tt>: </p> </li> -</ol> +</ol></div> <div class="listingblock"> <div class="content"> <pre><tt> const char *value = check[0].value; @@ -413,11 +461,11 @@ ... }</tt></pre> </div></div> -<p>(JC)</p> +<div class="para"><p>(JC)</p></div> </div> <div id="footer"> <div id="footer-text"> -Last updated 02-Jul-2008 03:02:18 UTC +Last updated 2008-09-19 06:33:28 UTC </div> </div> </body>